#include "ClientFactory.h"

ClientFactory::ClientFactory()
{

}

CommBase *ClientFactory::createNewClient(int clientType)
{
    CommBase *tmpClient = nullptr;
    switch (clientType) {
    case 0:
        tmpClient = new NRJB103Client();
        break;
    case 1:
        tmpClient = new NZ103Client();
        break;
    case 2:
        tmpClient = new PanelSF_TCPClient();
        break;
//    case 3:
//        tmpClient = new PanelXJ_TCPClient();
//        break;
    case 4:
        tmpClient = new SZNR103Client();
        break;
    default:
        break;
    }

    return tmpClient;
}


